import homePageRoutes from './homePageRoutes';
//系统路由
const routes = [
  {
    name: 'layout',
    path: '/',
    children: homePageRoutes,
  }, {
    name: 'formLayout',
    path: '/formLayout',
    redirect: 'openForm',
    children: [{
      name: 'openForm',
      path: '/openForm/:id',
      meta: {
        title: '公共表单',
        type: 'M',
      },
    }],
  }, {
    name: 'autoform',
    path: '/autoform',
    children: [{
      name: 'autoformList',
      path: '/autoform:/:id',
      meta: {
        title: '自动表单',
        type: 'M',
      },
    }],
  }, {
    name: 'login',
    path: '/login',
    meta: {title: '登录'},
  }, {
    name: 'mineDoc',
    path: '/mineDoc',
    meta: {title: '接口文档'},
    children: [
      {
        path: '/interfaceList',
        name: 'interfaceList',
        meta: {title: '接口列表'},
      },
      {
        path: '/interfaceCode',
        name: 'interfaceCode',
        meta: {title: '代码释义'},
      },
      {
        path: '/signature',
        name: 'signature',
        meta: {title: '签名算法'},
      },
    ],
  }
  , {
    path: '/:pathMatch(.*)*',
    hidden: true,
    meta: {title: '访问的页面不存在'},
  },
];

export default routes;
